import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:tender_flutter/constant/theme_colors.dart';
import 'package:tender_flutter/page/supplier/supplier_list_page.dart';
import 'package:tender_flutter/widgets/search_app_bar.dart';

class SupplierListMorePage extends StatefulWidget {
  @override
  _SupplierListMorePageState createState() => _SupplierListMorePageState();
}

class _SupplierListMorePageState extends State<SupplierListMorePage> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: ThemeColors.colorWhite,
      appBar: _initAppBar(),
      body: _initBody(),
    );
  }

  /// 导航
  Widget _initAppBar() {
    return SearchAppBar(
      context,
      searchCallback: (value) {
        // 键盘消失
        FocusScope.of(context).requestFocus(FocusNode());

        // _refreshController.requestRefresh();
      },
    );
  }

  /// 筛选菜单
  Widget _initBody() {
    return SupplierListPage(isShowFilterMenu: true);
  }
}
